package cn.t16.ms.feign.order;

import cn.t16.common.Result;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderClientFallback implements OrderClient {
    @Override
    public Result get(Integer id) {
        return Result.returnResult(500,"error");
    }

    @Override
    public Result getAll() {
        return Result.returnResult(500,"error");
    }

    @Override
    public List<OrderVO> getByUserId(Integer userId) {
        return new ArrayList<>();
    }

    @Override
    public Result add(OrderVO order) {
        return Result.returnResult(500,"error");
    }
}
